from django.db import models

# Create author models here.


class Author(models.Model):
    """ 作者类 """

    first_name = models.CharField(max_length=32)
    last_name = models.CharField(max_length=32)
    email = models.EmailField()
    gender = models.BooleanField(default=True)

    def __str__(self):
        return self.first_name + self.last_name

    class Meta:
        verbose_name = '作者'
        verbose_name_plural = '作者'
